package proxy.staticProxy;

/**
 * @author wmin
 */
public class RentalAgency implements Person {
    private Person tenant;

    public RentalAgency(Person tenant) {
        this.tenant = tenant;
    }

    @Override
    public void giveHouse() {
        TestFunctionSpendTime.start = System.currentTimeMillis();
        System.out.println("谈论价钱");
        tenant.giveHouse();
        System.out.println("交接钥匙");
        TestFunctionSpendTime.end = System.currentTimeMillis();
        TestFunctionSpendTime.display();
    }
}
